@extends('layouts.master')

@section('title')
    规格管理——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
@stop

@section('app_js')

@stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.product_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 标签
            </div>
            <div class="contentNav">
              <ul>
                <li>其他</li>
                <li class="btn btn-default active"><a href="/show_label">列表</a></li>
                <li class="btn btn-default"><a href="/add_label">新增</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember"> 
              <form class="form-inline">
                <div class="form-group">
                  <label>材质ID</label>
                  <input type="text" class="form-control" placeholder="">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
              </form>
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th>标签编号</th>
                    <th>标签名称</th>
                    <th>材质ID</th>
                    <th>编辑</th>
                  </tr>
                </thead>
                <tbody>
                @foreach($labels as $k => $label)
                <tr>
                    <td>{{ $label->label_id }}</td>
                    <td>{{ $label->label_name }}</td>
                    <td>{{ $label->quality }}</td>
                    <td><a href="/edit_label?label_id={{ $label->label_id }}">编辑</a> | <a href="/delete_label?label_id={{ $label->label_id }}">删除</a></td>
                </tr>
                    @endforeach
                </tbody>
              </table>
            </div>
            {{ $labels->links() }}
        </div>
    </div>
</div>
@stop